home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / cpp_libs / answrbok / 6_17.lha / 6_17 / 6_17a19.c < prev    next >
C/C++ Source or Header  |  1993-08-08  |  350b  |  15 lines

  1. * Copyright (c) 1990 by AT&T Bell Telephone Laboratories, Incorporated. */
  2. * The C++ Answer Book */
  3. * Tony Hansen */
  4. * All rights reserved. */
  5. / cout << v1
  6. stream& operator<<(ostream& out, vector& v1)
  7.  
  8.    out << "(";
  9.    float *f = v1.p->f;
  10.    int l = v1.p->length - 1;
  11.    for (int i = 0; i < l; i++)
  12. out << *f++ << ", ";
  13.    return out << *f << ")";
  14.  
  15.